﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="CanDoo.Oil.WebApp.oilStoreActivity.Edit" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>店铺活动编辑</title>
    <link href="/res/css/common.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="PanelMain" runat="server" />

        <f:Panel ID="PanelMain" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Anchor">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <f:Button ID="btnClose" EnablePostBack="false" runat="server" Hidden="true"
                            Text="关闭">
                        </f:Button>
                        <f:Button ID="btnSave" ValidateForms="FormEdit" Hidden="true"
                            OnClick="btnSave_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnToEdit" Hidden="true"
                            OnClick="btnToEdit_Click" runat="server" Text="编辑信息">
                        </f:Button>
                        <f:HiddenField ID="ed_EntityId" runat="server"></f:HiddenField>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:Form BodyPadding="10px" ShowBorder="false" EnableCollapse="true"
                    ID="FormEdit" runat="server" ShowHeader="false" LabelAlign="Right">
                    <Items>
                        <f:Panel ID="Panel0" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextBox ID="ed_Name" runat="server" Required="true" ShowRedStar="True" Label="名称">
                                </f:TextBox>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel17" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:Image ID="ed_HeadImg" CssClass="photo" ImageHeight="200px" ImageUrl="~/res/images/nopic.jpg" ShowEmptyLabel="true" runat="server" ShowLabel="true" Label="活动图片">
                                </f:Image>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel18" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:FileUpload runat="server" ID="filePhoto0" ShowRedStar="false" ShowEmptyLabel="true" ShowLabel="true"
                                    ButtonText="上传图片" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                    AutoPostBack="true" OnFileSelected="filePhoto0_FileSelected">
                                </f:FileUpload>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel2" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:DatePicker ID="ed_StartTime" runat="server" Label="开始时间" ColumnWidth="50%">
                                </f:DatePicker>
                                <f:DatePicker ID="ed_EndTime" runat="server" Label="结束时间" ColumnWidth="50%">
                                </f:DatePicker>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel1" ShowHeader="false" ShowBorder="false" runat="server" Layout="Column" BoxConfigAlign="Stretch">
                            <Items>
                                <f:TextArea ID="ed_Introduction" runat="server" Required="true" ShowRedStar="True" Label="活动简介" Height="150px" MaxLength="50">
                                </f:TextArea>
                            </Items>
                        </f:Panel>

                    </Items>
                </f:Form>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
